
#ifndef __EX5__VOIPAPP_H_
#define __EX5__VOIPAPP_H_

#include <vector>
#include <omnetpp.h>
#include "UDPBasicApp.h"

//class INET_API UDPBasicApp : public UDPAppBase
class INET_API VoIPApp : public UDPBasicApp {
//  protected:
    //std::string nodeName;
    //int localPort, destPort;
    //std::vector<IPvXAddress> destAddresses;

    //static int counter; // counter for generating a global number for each packet

    int numDelayed;
    //int numReceived;

    // chooses random destination address
    //virtual IPvXAddress chooseDestAddr();
    //virtual cPacket *createPacket();
    //virtual void sendPacket();
    //virtual void processPacket(cPacket *msg);

  protected:
    //virtual int numInitStages() const {return 4;}
    //virtual void initialize(int stage);
    //virtual void handleMessage(cMessage *msg);
    virtual void finish();
    void processPacket(cPacket *msg);
};

#endif
